/**
 * 导入模型
 * @param path - 导入模型路径
 * @param successFn - 导入后执行的回调函数
 */
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js"
export const loadManager = (path, successFn) => {
    const gltfLoader = new GLTFLoader()
    gltfLoader.load(path, (gltf) => successFn(gltf.scene), (progress) => {
        // console.log(progress, 'progress');
    }, (error) => {
        // console.log(error, 'error');
    })
}